package base.template.fruit;

class Fruit{}
class Apple extends Fruit{}
class Jonathan extends Apple{}
class Orangle extends Fruit{}

public class CovariantArrays {
	public static void main(String[] args) {
		Fruit[]fruits=new Apple[10];
		fruits[0]=new Apple();
		fruits[1]=new Jonathan();
		
//		fruits[2]=new Fruit();
		
		fruits[3]=new Orangle();
	}
}
